package mysql

import (
	"gitee.com/mkwchecking/sr-core/storage/database/driver"
	"gorm.io/driver/mysql"
	"gorm.io/gorm"
)

func init() {
	driver.Register(driver.MySQL, New)
}

func New(cfg driver.Conn) gorm.Dialector {
	return mysql.Open(cfg.GetDSN())
}
